<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文件上传与管理</title>
    <link rel="stylesheet" href="/static/css/style.css">
    <style>
        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            text-align: center;
        }
        #uploadProgress {
            width: 100%;
            margin: 20px 0;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>文件上传与管理</h1>
        <form id="uploadForm" enctype="multipart/form-data">
            <input type="file" id="fileInput" name="file" required>
            <button id="uploadButton" type="button">上传文件</button>
        </form>
        <progress id="uploadProgress" value="0" max="100" hidden></progress>
        <p id="status"></p>
        <hr>
        <h2>已上传文件列表</h2>
        <ul id="fileList"></ul>
    </div>
    <script src="/static/js/upload.js"></script>
    <script src="/static/js/spark-md5.min.js"></script>
    <script src="/static/js/listFiles.js"></script>
</body>
</html>